package com.example.page404.config;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

@ControllerAdvice
public class GlobalConfig {
@ModelAttribute
    public void addAttr(Model model){
    model.addAttribute("author","张三");
}
}
